package cn.dkk.behavior_design.visitor.assignment.duouble_assignment;

/**
 * @author dkk
 * @date 2022/7/31
 * @desc
 */
public class DoubleAssignment {
    public static void main(String[] args) {
        Pet pet = new Pet();
        Pet dog = new Cat();
        Pet cat = new Dog();
        Executor executor = new Executor();
        pet.howl(executor);
        dog.howl(executor);
        cat.howl(executor);
    }
}
